Automattic\Jetpack\Dashboard_Customizations\Base_Admin_Menu C

Total Complexity 104
Dependencies 2
Dependents 1
Total lines 778
Lines of code 407
Logical lines of code 205
Comment lines 268
Methods 30
Properties 3

Methods 30

Method Rating Maintainability Complexity Lines of code
update_menu()
A
45 14 41
override_svg_icons()
A
44 10 45
update_submenus()
A
48 10 34
hide_parent_of_hidden_submenus()
A
55 8 18
handle_preferred_view()
S
53 6 22
__construct()
S
54 6 18
get_current_screen()
S
59 5 14
get_preferred_view()
S
62 5 11
enqueue_scripts()
S
48 3 39
hide_submenu_page()
S
60 4 14
sort_hidden_submenus()
S
62 4 12
get_submenu_item_count()
S
68 4 7
set_menu_item()
S
61 3 11
add_dashboard_switcher()
S
53 2 26
dashboard_switcher_scripts()
S
60 1 23
hide_submenu_element()
S
71 2 5
get_instance()
S
69 2 7
is_item_visible()
S
77 2 3
get_preferred_views()
S
70 2 7
use_wp_admin_interface()
S
79 1 3
inject_core_mobile_toggle()
S
82 1 3
should_link_to_wp_admin()
S
80 1 3
admin_body_class()
S
80 1 3
configure_colors_for_rtl_stylesheets()
S
79 1 3
add_admin_menu_separator()
S
65 1 10
set_preferred_view()
S
69 1 6
set_site_icon_inline_styles()
S
72 1 9
is_rtl()
S
81 1 3
has_visible_items()
S
69 1 7
reregister_menu_items()
S
100 1 0